//package com.sll.hosptials.config;
//
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//public class InterceptorConfig implements WebMvcConfigurer {
//    //添加自定义拦截器
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        //设置自定义拦截器对象 同时设置匹配的url地址
//        registry.addInterceptor(null).addPathPatterns("/**")
//                .excludePathPatterns("/swagger-ui.html","/swagger-resources/**","/webjars/**","/swagger-ui/**","/v3/api-docs/**","/doc.html");
//
//    }
//
//}
